package com.ccit.order.receiver;

import com.ccit.common.rabbit.service.RabbitService;
import com.ccit.model.Order;
import com.ccit.order.service.OrderService;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;



@Component
//@RabbitListener(queues = "OrderDirectQueue")
public class OrderDirectReceiver {
//    @Autowired
//    private OrderService orderService;
//
//    @Autowired
//    private RabbitService rabbitService;
//
//
//    @RabbitHandler
//    public void process(Order order) {
//        boolean flag = orderService.save(order);
//        System.out.println("是否保存成功==================>" + flag);
//    }
}
